package cn.bluemobi.platform.mapper;

import java.util.List;
import java.util.Map;

import cn.bluemobi.platform.entity.commodity.Commodity;
import cn.bluemobi.platform.entity.commodity.Specification;

public interface CommodityMapper {

	List<Commodity> findCommoditys(Map<String, Object> map);

	Commodity findCommodityDetail(String commodityId);

	int insertCommodity(Commodity commodity);

	int updateCommodity(Commodity commodity);

	int insertCommodityImages(Commodity commodity);

	int deleteCommodityImages(String commodityId);

	int deleteCommodity(String commodityId);

	int insertSpecification(List<Specification> specifications);

	int updateSpecification(List<Specification> updateSpecifications);

	int deleteSpecification(String commodityId);

	List<Specification> findSpecifications(String commodityId);

	List<Map<String, Object>> findMerchantList();

	List<Map<String, Object>> findCategoryList(Map<String, Object> params);

	int deleteCommodityByMerchantId(String merchantId);

}
